<template>
  <div class="about">
    <div class="swiper-container box">
      <div class="swiper-wrapper">
        <div class="swiper-slide">
          <img
            style="width: 256px; height: 200px"
            src="https://gw.alicdn.com/imgextra/i1/6000000003463/O1CN01cdVumY1bS6KEHYjO1_!!6000000003463-0-octopus.jpg_290x10000Q75.jpg_.webp"
            alt=""
          />
          <img
            style="width: 256px; height: 200px; margin-left: 20px"
            src="https://gw.alicdn.com/imgextra/i1/6000000007894/O1CN01OYbIs528BVIIwczcJ_!!6000000007894-0-octopus.jpg_290x10000Q75.jpg_.webp"
            alt=""
          />
        </div>
        <div class="swiper-slide">
          <img
            style="width: 256px; height: 200px"
            src="https://gw.alicdn.com/imgextra/i1/6000000005015/O1CN01YQwsWI1muv1INeLD3_!!6000000005015-0-octopus.jpg_290x10000Q75.jpg_.webp"
            alt=""
          />
          <img
            style="width: 256px; height: 200px; margin-left: 20px"
            src="https://gw.alicdn.com/imgextra/i4/6000000000247/O1CN01ttDlVy1DhAZccB8GC_!!6000000000247-0-octopus.jpg_290x10000Q75.jpg_.webp"
            alt=""
          />
        </div>
        <div class="swiper-slide">
          <img
            style="width: 256px; height: 200px"
            src="https://gw.alicdn.com/imgextra/i2/6000000000054/O1CN01buFASs1CGm8U93ekk_!!6000000000054-0-octopus.jpg_290x10000Q75.jpg_.webp"
            alt=""
          />
          <img
            style="width: 256px; height: 200px; margin-left: 20px"
            alt=""
            src="https://gw.alicdn.com/imgextra/i3/6000000002143/O1CN01W7z7ut1RhXWH5NEsg_!!6000000002143-0-octopus.jpg_290x10000Q75.jpg_.webp"
          />
        </div>
      </div>
      <!-- 如果需要分页器 -->
      <div class="swiper-pagination"></div>
    </div>
  </div>
</template>

<script>
import Swiper from "swiper";
export default {
  mounted() {
    new Swiper(".box", {
      autoplay: true,
      loop: true,
      speed: 2000,
      // 如果需要分页器
      pagination: ".swiper-pagination",
      effect:"slide",
    
    });
  },
};
</script>

<style  scoped>
.swiper-wrapper {
  width: 520px;
  height: auto;
  margin-bottom: 30px;
}
.swiper-slide > img {
  border-radius: 10px;
}
.swiper-button-next {
  right: 40px;
}
.swiper-button-prev {
  left: 40px;
}
</style>